package com.yang.trainingCamp.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CamperProducts {
    @TableId(type = IdType.ASSIGN_UUID)
    private String Id;
    private String CamperId;
    private String ProductId;
    private String ProductName;
    private int TrainingDays;
    private int Number;
//    private boolean RunOut;
    @TableField(fill = FieldFill.INSERT)
    private Date createAt;
    @TableField(fill = FieldFill.DEFAULT)
    private Date updateAt;

    public String getId() {
        return Id;
    }

    public void setId(String id) {
        Id = id;
    }

    public String getCamperId() {
        return CamperId;
    }

    public void setCamperId(String camperId) {
        CamperId = camperId;
    }

    public String getProductId() {
        return ProductId;
    }

    public void setProductId(String productId) {
        ProductId = productId;
    }

    public String getProductName() {
        return ProductName;
    }

    public void setProductName(String productName) {
        ProductName = productName;
    }

    public int getTrainingDays() {
        return TrainingDays;
    }

    public void setTrainingDays(int trainingDays) {
        TrainingDays = trainingDays;
    }

    public int getNumber() {
        return Number;
    }

    public void setNumber(int number) {
        Number = number;
    }

//    public boolean isRunOut() {
//        return RunOut;
//    }
//
//    public void setRunOut(boolean runOut) {
//        RunOut = runOut;
//    }

    public Date getCreateAt() {
        return createAt;
    }

    public void setCreateAt(Date createAt) {
        this.createAt = createAt;
    }

    public Date getUpdateAt() {
        return updateAt;
    }

    public void setUpdateAt(Date updateAt) {
        this.updateAt = updateAt;
    }
}
